<meta itemprop="name" content="<?php echo $title; ?>">
<meta itemprop="description" content="<?php echo $metadescription; ?>">
<meta itemprop="image" content="http://garryconn.com/images/garryconn.jpg">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="google-site-verification" content="xppw1QtZSiF9GQt4YsZK1aiHsiSrg0jgHM0T6CwQ-B8" />
<meta name="author" content="Garry Conn">
<link rel="alternate" type="application/rss+xml" title="Garry Conn RSS Feed" href="http://feeds.feedburner.com/garryconn" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<?php
     $agent = $_SERVER['HTTP_USER_AGENT'];
    
if (preg_match("(iPhone|BlackBerry|PalmSource)", $agent) != false) {
echo <<<END
<link rel='stylesheet' type='text/css' href='style.css' />
<meta name='viewport' content='width=480'>
END;
}
else {
     echo "<link rel='stylesheet' type='text/css' href='style.css' />"
;
}
?>

<link rel="stylesheet" type="text/css" href="comments/css/stylesheet.css"/>
<!-- GOOGLE ANALYTICS GOES HERE -->

</head>
<body>
<?php flush(); ?>

<div id="pagewrap">
<div id="headertop">
<?php
$referrer = $_SERVER['HTTP_REFERER'];
$my_domain = "http://connga.com";
$search_engines = "google|yahoo|bing|altavista|digg";
$pattern = "((http(s)?://)(\w+?\.)?(?!{$my_domain})({$search_engines}))";
if (preg_match("/{$search_engines}/i", $referrer) != false) {
    echo <<<END
<!-- adsense goes here -->
END;
} else {
    // Show something to visitors not referred by a search engine
}
?>
</div>
<?php include('connpress/templates/nav.php'); ?>
<?php include('connpress/templates/sidebar.php'); ?>
<div id="container">
